package ti25;

public class Student {
    private long num;
    private String name;
    private String banJi;
    private boolean xingBie;
    private int nianLing;

    public Student(long num, String name, String banJi, String xingBie, int nianLing) {
        this.num = num;
        this.name = name;
        this.banJi = banJi;
        if (xingBie.equals("男")){
            this.xingBie = true;
        }else {
            this.xingBie = false;
        }
        this.nianLing = nianLing;
    }

    public long getNum() {
        return num;
    }

    public void setNum(long num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBanJi() {
        return banJi;
    }

    public void setBanJi(String banJi) {
        this.banJi = banJi;
    }

    public boolean isXingBie() {
        return xingBie;
    }

    public void setXingBie(String xingBie) {
        if (xingBie.equals("男")){
            this.xingBie = true;
        }else {
            this.xingBie = false;
        }
    }
    public int getNianLing() {
        return nianLing;
    }

    public void setNianLing(int nianLing) {
        this.nianLing = nianLing;
    }
}
